<!--
 * @Description: 
 * @Date: 2022-06-10 17:07:40
 * @LastEditTime: 2022-08-08 15:48:47
 * @FilePath: \jsnode\css\transition.html
-->
<!DOCTYPE html>
<html>
<head>
<style> 
div {
  width: 100px;
  height: 100px;
  background: red;
  transition: width 2s, height 4s;
  transition-delay: 1s;
}

div:hover {
  width: 300px;
  height: 300px;
}
.geg{
  width: 100px;
  height: 100px;
  background: red;
  transform: translate(50px);
}
</style>
</head>
<body>

<h1>transition 属性</h1>

<p>请把鼠标悬停在下面的 div 元素上，来查看过渡效果：</p>

<div></div>

<p><b>注释：</b>本例在 Internet Explorer 9 和更早版本中不起作用。</p>

<div class="geg"></div>
</body>
</html>